﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace zUfDsl.Sync.Post
{
    public class UserTipModel
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public string cModel { set; get; }
        /// <summary>
        /// 提示信息
        /// </summary>
        public string cTip { set; get; }
        /// <summary>
        /// 是否完成
        /// </summary>
        public iCompleteEnum iComplete { set; get; }
        /// <summary>
        /// 是否出错
        /// </summary>
        public bool bErr { set; get; }
        /// <summary>
        /// 完成比例
        /// </summary>
        public int iPercent { get { return iMax == 0 ? 0 : Convert.ToInt32(ival * 100 / iMax); } }
        /// <summary>
        /// 
        /// </summary>
        public int ival { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public int iMax { set; get; }


    }
    public enum iCompleteEnum
    {
        未开始 = 0,
        进行中 = 1,
        已完成 = 2
    }
}
